
import { computed, ref, reactive } from 'vue';
import { Pagination } from '@/types/global';
import type { TableColumnData, TableData } from '@arco-design/web-vue/es/table/interface';

const fmodel:any = {
  organizationCode: '',
  organizationName: '',
  fullName: ''
};
export const formModel = ref(fmodel);

export const pagination: Pagination = reactive({
  current: 1,
  pageSize: 20,
});
export const columns = computed<TableColumnData[]>(() => [
  {
    title: '编号',
    dataIndex: 'organizationId',
    width: 80,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '机构代码',
    dataIndex: 'organizationCode',
    width: 80,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '机构名称',
    dataIndex: 'organizationName',
    width: 160,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '机构全称',
    dataIndex: 'fullName',
    width: 160,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '机构类型',
    dataIndex: 'organizationTypeName',
    width: 80,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '创建时间',
    dataIndex: 'time',
    width: 140,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '创建人',
    dataIndex: 'creatorName',
    width: 80,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '是否可用',
    dataIndex: 'enabled',
    slotName: 'enable',
    width: 80,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '操作',
    slotName: 'operations',
    width: 110,
    align: 'center',
  },
]);
